﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NHibernate;
using NHibernate.Cfg;

namespace EvidenceService.Core
{
    public static class HbmSessionFactory
    {
        private  static readonly ISessionFactory mFactory = new Configuration().Configure().BuildSessionFactory();

        public static ISession GetSession()
        {
            return mFactory.OpenSession();
        }
    }
}
